/*
 * Copyright (c) 2003-2004, Inversoft, All Rights Reserved
 *
 * This software is distribuable under the GNU Lesser General Public License.
 * For more information visit gnu.org.
 */
package org.emergent.antbite.savant.ant.types;


import java.io.File;

import org.apache.tools.ant.types.DataType;

import org.emergent.antbite.savant.LocalProject;


/**
 * <p>
 * This class is an ant type that models a project dependency
 * on another project that can be built locally.
 * </p>
 *
 * @author  Brian Pontarelli
 */
public class LocalProjectType extends DataType {

    private LocalProject proxy = new LocalProject();


    /**
     * Returns the LocalProject object that this class is a proxy to.
     */
    public LocalProject getProxy() {
        return proxy;
    }

    /**
     * Returns the group that this local project belongs to.
     */
    public String getGroup() {
        return proxy.getGroup();
    }

    /**
     * Sets the group that this local project belongs to.
     */
    public void setGroup(String group) {
        proxy.setGroup(group);
    }

    /**
     * Returns the name of this local project.
     */
    public String getName() {
        return proxy.getName();
    }

    /**
     * Sets the name of this local project.
     */
    public void setName(String name) {
        proxy.setName(name);
    }

    /**
     * Returns the optional build file name of this local project. Defaults to
     * build.xml.
     */
    public String getAntfile() {
        return proxy.getAntfile();
    }

    /**
     * Sets the optional build file name of this local project.
     */
    public void setAntfile(String antfile) {
        proxy.setAntfile(antfile);
    }

    /**
     * Returns the optional target name which is called to build this local
     * project. This defaults to empty, which means the default target is used.
     */
    public String getTarget() {
        return proxy.getTarget();
    }

    /**
     * Sets the optional target name which is called to build this local project.
     */
    public void setTarget(String target) {
        proxy.setTarget(target);
    }

    /**
     * Returns the directory where this local project is located.
     */
    public File getDir() {
        return proxy.getDir();
    }

    /**
     * Sets the directory where this local project is located.
     */
    public void setDir(File dir) {
        proxy.setDir(dir);
    }
}